package com.sokal.easycare.modules.contract.entity;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sokal.easycare.common.persistence.DataEntity;

/**
 * 合同信息Entity
 * @author liliangdong
 * @version 2017-04-10
 */
public class ContractSchedule extends DataEntity<ContractSchedule> {
	
	private static final long serialVersionUID = 1L;
	private ContractInfo contractInfo;		// 所属合同 父类
	private Double schedule;		// 工期时间(天)
	private Double sort;		// 排序号
	
	public ContractSchedule() {
		super();
	}

	public ContractSchedule(String id){
		super(id);
	}

	public ContractSchedule(ContractInfo contractInfo){
		this.contractInfo = contractInfo;
	}

	@JsonIgnore
	@Length(min=0, max=64, message="所属合同长度必须介于 0 和 64 之间")
	public ContractInfo getContractInfo() {
		return contractInfo;
	}

	public void setContractInfo(ContractInfo contractInfo) {
		this.contractInfo = contractInfo;
	}
	
	public Double getSchedule() {
		return schedule;
	}

	public void setSchedule(Double schedule) {
		this.schedule = schedule;
	}
	
	public Double getSort() {
		return sort;
	}

	public void setSort(Double sort) {
		this.sort = sort;
	}
	
}